﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="danh-muc-chi-tiet.ascx.cs" Inherits="UserControl_danh_muc_chi_tiet" %>
<%@ Register Src="control-fan-facebook.ascx" TagName="control" TagPrefix="uc1" %>
<%@ Register Src="~/UserControl/formQT-left.ascx" TagPrefix="uc2" TagName="formQTleft" %>

<%
    string strDanhMuc = clsCommon.fncGetRoute(this.Page, "UserControl");
    var dt = clsDanhMuc.fncGetByTenKoDau(strDanhMuc);
    string strSlidePopUp = dt.Rows[0]["dm_slidePopUp"].ToString();
    if (dt == null) return;
    else
    {
%>
<h1 class="titlePage"><span style="padding: 5px 5px 5px 35px; display: inline-block;"><%=dt.Rows[0]["dm_tieude"].ToString() %></span></h1>
<div class="lst-button-like">
    <div class="like-text">
        LIKE
    </div>
    <div class="lk-btn">
        <%=clsExportHtml.fncLikeButton()%>
    </div>
    <div class="clr">
    </div>
</div>
<div class="contentLeft _content" style="width: 100%; background: url('/images/system/bgCHUYENMUC.jpg') no-repeat scroll 50% top #265989;">
    <div style="padding: 10px;">
        <%=dt.Rows[0]["dm_noidung"].ToString() %>
    </div>
</div>
<!------------------------SLIDE KHÓA HỌC---------------------------->
<%=OsPortal.oFileHelper.ReadFile(strSlidePopUp) %>
<!------------------------SLIDE KHÓA HỌC---------------------------->
<%} %>

<!--========================Lịch khai giảng=============================-->
<%
    var dt_lkg = clsTinDang.fncTinDang_FND(1, 100, "lich-khai-giang", 0, strDanhMuc, "", 1);
    if (dt_lkg != null)
    {
%>
<%=clsExportHtml.fncExportLichKhaiGiang(dt_lkg)%>
<%} %>
<!--========================Chương trình đào tạo=============================-->
<section class="news-top" style="margin-top: 30px;">
    <header>
        <span style="background: none !important; top: -33px !important; left:320px !important;">
            <img src="/Images/System/CHONDIENGIA.gif" style="margin-top: -6px;" /></span>
    </header>
    <ul class="lst-news" id="NBonIndex">
        <%=clsExportHtml.fncExportCTDT(clsDanhMuc.fncGetByParentID(basConst.CHUONG_TRINH_DAO_TAO))%>
        <div class="clr"></div>
    </ul>
</section>
<!-- ================================================================================ -->
<!-- =============== -->
<div class="contentRight" style="float: left;">
    <%
        //Nếu chủ đề đó là lịch khai giảng thì chỉ lấy tin tức
        if (strDanhMuc == "lich-khai-giang") strDanhMuc = "tin-tuc";
        var dtNews = clsTinDang.fncTinDang_FND(1, 30, "tin-tuc", 0, strDanhMuc, "", 1);
        if (dtNews != null)
        {
    %>
    <div class="spaces">
        Tin liên quan
    </div>
    <%=clsExportHtml.fncExportListTin(dtNews)%>
    <%} %>

    <%
        if (strDanhMuc != "tin-tuc")
        {
            var dtNewsDanhMuc = clsTinDang.fncTinDang_FND(1, 50, strDanhMuc, 0, "", "", 1);
            if (dtNewsDanhMuc != null)
            {
    %>
    <!-- Danh sách tin thuộc chủ đề đó -->
    <div class="spaces">
        Danh sách
    </div>
    <%=clsExportHtml.fncExportListTin(dtNewsDanhMuc)%>
    <%}
        } %>
</div>
<!---------------------------- RIGHT CONTROL ---------------------------->
<div class="contentLeft" style="float: right;">
    <div>
        <%--<a href="http://nghikhac.com/nhan-qua-tang">
            <img src="/Images/System/QUA-TANG-NGHI-KHAC.gif" alt="qua-tang-nghi-khac" />
        </a>--%><uc2:formQTleft runat="server" ID="formQTleft" />
    </div>
    <uc1:control ID="control1" runat="server" />
    <%=clsExportHtml.fncExportLichKhaiGiang_Mini()%>
</div>
<!--------------------------- END RIGHT CONTROL ------------------------->

<!---------------------------------------HISTAT BDDS -->
<%if (strDanhMuc == "dao-tao-bat-dong-san")
  {%>
<div style="float: left; width: 100%; text-align: right; margin-top: -70px;">
    <!-- Histats.com  START  (standard)-->
    <script type="text/javascript">document.write(unescape("%3Cscript src=%27http://s10.histats.com/js15.js%27 type=%27text/javascript%27%3E%3C/script%3E"));</script>
    <a href="http://www.histats.com" target="_blank" title="counter easy hit">
        <script type="text/javascript">
            try {
                Histats.start(1, 2522493, 4, 428, 112, 75, "00011111");
                Histats.track_hits();
            } catch (err) { };
        </script>
    </a>
    <noscript>
        <a href="http://www.histats.com" target="_blank">
            <img src="http://sstatic1.histats.com/0.gif?2522493&101" alt="counter easy hit" border="0"></a>
    </noscript>
    <!-- Histats.com  END  -->
</div>
<%}%>
<!-------------------------------------- END HISTAT ---------------------------------------------->
<!--------------------------------------- HISTAT MARKETING ONLINE -------------------------------->
<%if (strDanhMuc == "dao-tao-marketing-online")
  {%>
<div style="float: left; width: 100%; text-align: right; margin-top: -70px;">
    <!-- Histats.com  START  (standard)-->
    <script type="text/javascript">document.write(unescape("%3Cscript src=%27http://s10.histats.com/js15.js%27 type=%27text/javascript%27%3E%3C/script%3E"));</script>
    <a href="http://www.histats.com" target="_blank" title="javascript hit counter">
        <script type="text/javascript">
            try {
                Histats.start(1, 2543854, 4, 3020, 130, 80, "00011101");
                Histats.track_hits();
            } catch (err) { };
        </script>
    </a>
    <noscript>
        <a href="http://www.histats.com" target="_blank">
            <img src="http://sstatic1.histats.com/0.gif?2543854&101" alt="javascript hit counter" border="0"></a>
    </noscript>
    <!-- Histats.com  END  ------------------------------------------------------------------------------>
    <!-- Chat trực tuyến -->
    <script type="text/javascript">
        var __lc = {};
        __lc.license = 4756111;

        (function () {
            var lc = document.createElement('script'); lc.type = 'text/javascript'; lc.async = true;
            lc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.livechatinc.com/tracking.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(lc, s);
        })();
    </script>
    <!-- Chat trực tuyến-->
</div>
<%}%>
<!-----------------------------------END HISTAT -->


<script src="/Scripts/danh-muc-chi-tiet.js"></script>
